<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--通过${}访问model中的属性，和jsp极为相似-->
<span th:text="${msg}"></span>
<span th:text="${lastName}"></span>
<span th:text="*{lastName}"></span>
<span th:text="${student}"></span>
<div th:object="${student}">
    <span th:text="*{stuname}"></span>
    <a th:if="1==1">标签一</a>
    <a th:unless="1==1">标签二</a>
<a th:href="@{/stu/select(pageNum='1',pageSize='5')}">查询</a>

    <table border="1">
        <tr>
            <td>学生编号</td>
            <td>学生名</td>
            <td>生日</td>
            <td>身份证</td>
            <td>手机号</td>
            <td>班级编号</td>
        </tr>
        <tr th:each="stu:${list}">
            <td th:text="${stu.stuno}"></td>
            <td th:text="${stu.stuname}"></td>
            <td th:text="${stu.birthday}"></td>
            <td th:text="${stu.idcard}"></td>
            <td th:text="${stu.phone}"></td>
            <td th:text="${stu.classid}"></td>
        </tr>
    </table>

</div>

</body>
</html>